package com.SmartCare.controller.manager;


import com.SmartCare.common.Result;
import com.SmartCare.service.medicine.MedicationFrequencyService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 药物频率表 前端控制器
 */
@RestController
@RequestMapping("/medication-frequency")
public class MedicationFrequencyController {

    @Resource
    MedicationFrequencyService medicationFrequencyService;

    @GetMapping("/getAll")
    public Result getAll() {
        return medicationFrequencyService.getAll();
    }
}

